#ifndef __MYWSBASE_H__
#define __MYWSBASE_H__

#include <winsock2.h>

class MyWinsockBase
{
private:
	BOOL    Startup();

protected:
	int		m_iMaxSockets;
	HWND	m_hWnd;
	SOCKET	m_socket;
	int     m_sendbufsize;
	int     m_recvbufsize;
	BOOL	m_Connect; //new value

public :
	BOOL CreateSocket(HWND hWnd);
	BOOL Close();
	BOOL Close(SOCKET socket);
	BOOL Close2(SOCKET socket);

	SOCKET GetSocket();
	int GetSendBuffSize();
	int GetRecvBuffSize();

	BOOL GetConnect();
	void SetConnect(BOOL connected);

	MyWinsockBase();
	~MyWinsockBase();
};

#endif